import {Items} from './items';

export class WorkStatus {

   id: number;
   title: string;
   createTime: Date;
   message: string;
   items: Array<Items>;

  constructor(
    opts: {
      id?: number;
      title?: string;
      createTime?: Date;
      message?: string;
      items?: Array<Items>;
    } = {}) {
    this.id = opts.id || 0;
    this.title = opts.title || '';
    this.createTime = opts.createTime || new Date();
    this.message = opts.message || '';
    this.items = opts.items || [];
  }
}
